export default function useConfig() {
  const tableColumns = buildColumns([
    {
      title: '主机记录',
      dataIndex: 'name',
    },
    {
      title: '记录类型',
      dataIndex: 'type',
    },
    {
      title: '记录值',
      dataIndex: 'value',
    },
    {
      title: 'TTL',
      dataIndex: 'ttl',
      slotName: 'ttl',
    },
    {
      title: '备注',
      dataIndex: 'remark',
      slotName: 'remark',
    },
    {
      title: '创建时间',
      dataIndex: 'updated_at',
      format: 'date-time',
    },
    {
      title: '操作',
      fixed: 'right',
      slotName: 'actions',
      width: 80,
      cellClass: 'actions-cell',
    },
  ])

  return {
    tableColumns,
  }
}
